﻿#region File Description
//-----------------------------------------------------------------------------
//Program.cs
//Entry Point
//-----------------------------------------------------------------------------
#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
#endregion

namespace ProjectTerra
{
    class Program
    {
        static void Main()
        {
            #region Testing

            List<Car> test_cars = new List<Car>();
            List<Dealership> test_dealers = new List<Dealership>();
            List<Customer> test_cus = new List<Customer>();
            List<Staff> test_staff = new List<Staff>();
            List<Manager> test_man = new List<Manager>();

            #region Dealership testing
        
            Dealership d = new Dealership();
            
            //empty dealer
            test_dealers.Add(d);

            //full dealer
            
            //Dealerships
            //Bob's Used Auto 
            //owned by Bob Barker
            //DFW TX I-35
            //999-999-9999
            //Services: Sales and Repairs

            //Gently Used Cars 
            //owned by Ralphy
            //Houston TX
            //888-888-8888
            //Services: Sales

            //Edd's Sawed Off Autos
            //Edd McMan
            //Austin TX
            //777-777-7777
            //Services: Sales and Repairs and Customization

            d = new Dealership();
            d.ContactInformation = new ContactInfo("Bob's Used Auto", "Bob's Used Auto", "Bob's Used Auto", "DFW I-35", "999-999-9999", "999-999-9999", "999-999-9999");
            d.Dealership_ID = 1;
            d.Owner = "Bob Barker";
            d.Services = "Sales and Repairs";
            test_dealers.Add(d);

            d = new Dealership();
            d.ContactInformation = new ContactInfo("Gently Used Cars", "Gently Used Cars", "Gently Used Cars", "Houston TX", "888-888-8888", "888-888-8888", "888-888-8888");
            d.Dealership_ID = 2;
            d.Owner = "Ralphy";
            d.Services = "Sales";
            test_dealers.Add(d);

            d = new Dealership();
            d.ContactInformation = new ContactInfo("Edd's Sawed Off Autos", "Edd's Sawed Off Autos", "Edd's Sawed Off Autos", "Austin TX", "777-777-7777", "777-777-7777", "777-777-7777");
            d.Dealership_ID = 3;
            d.Owner = "Edd McMan";
            d.Services = "Sales and Repairs and Customization";
            test_dealers.Add(d);

            //duplicate dealer
            test_dealers.Add(d);

            #endregion

            #region Customer testing

            Customer u = new Customer();

            //empty customer
            test_cus.Add(u);

            //Jason Dean Smith
            //1702 Ibis Ct, Bryan, Tx
            //Home: 9728741090
            //Work: 9728741090
            //Cell: 9727409905
            //Pending Purchase: BMW id: 11111111

            //Jill Smith
            //2222 random rd, Houston, Tx
            //Home: 9991111111
            //Work: 9991111111
            //Cell: 9991111111
            //Pending Purchase: Honda id: 22222222

            //John A Doe
            //42 answer trail, College Station, Tx
            //Home: 9992222222
            //Work: 9992222222
            //Cell: 9992222222
            //Pending Purchase: Mercedes id: 33333333

            //Samuel L Jackson
            //blank
            //Home: 9993333333
            //Work: 9993333333
            //Cell: 9993333333
            //Pending Purchase: Porsche id: 44444444

            //Jackson Booth
            //111 road rd, Snook, Tx
            //Home: 9994444444
            //Work: 9994444444
            //Cell: 9994444444
            //Pending Purchase: Mustang id: 55555555

            //James Dead
            //blank
            //Home: 2223333333
            //Work: 2223333333
            //Cell: 2223333333
            //purchased: Honda id: 00000001

            //Eddie Munster
            //666 scary ln
            //Home: 6666666666
            //Work: 6666666666
            //Cell: 6666666666
            //purchased: Hurse id: 00000002

            //Jackie Moon
            //1 car drive, Austin, Tx
            //Home: 3333333336
            //Work: 3333333336
            //Cell: 3333333336
            //purchased:  BMW id: 000000003

            //Freddy Kruegar
            //666 Elm St, Everywhere, Tx
            //Home: 6665555555
            //Work: 6665555555
            //Cell: 6665555555
            //purchased: BMW id: 000000004

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00001;
            u.Info = new ContactInfo("Jason", "Smith", "Dean", "1702 Ibis", "9727409905", "9728741090", "9727409905");
            u.Interested = "Cars";
            u.PendingPurchase = "BMW id: 11111111";
            u.Requests = "requests";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00002;
            u.Info = new ContactInfo("Jill", "Smith", "", "2222 random rd, Houston, Tx", "9991111111", "9991111111", "9991111111");
            u.Interested = "";
            u.PendingPurchase = "Honda id: 22222222";
            u.Requests = "requests";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00003;
            u.Info = new ContactInfo("John", "Doe", "A", "42 answer trail, College Station, Tx", "9992222222", "9992222222", "9992222222");
            u.Interested = "";
            u.PendingPurchase = "Mercedes id: 33333333";
            u.Requests = "requests";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00004;
            u.Info = new ContactInfo("Samuel", "Jackson", "L", "", "9993333333", "9993333333", "9993333333");
            u.Interested = "";
            u.PendingPurchase = "Porsche id: 44444444";
            u.Requests = "";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00005;
            u.Info = new ContactInfo("Jackson", "Booth", "", "111 road rd, Snook, Tx", "9994444444", "9994444444", "9994444444");
            u.Interested = "";
            u.PendingPurchase = "Porsche id: 44444444";
            u.Requests = "";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00006;
            u.Info = new ContactInfo("James", "Dean", "", "", "2223333333", "2223333333", "2223333333");
            u.Interested = "";
            u.PendingPurchase = "purchased: Honda id: 00000001";
            u.Requests = "";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00007;
            u.Info = new ContactInfo("Eddie", "Munster", "", "666 scary ln", "6666666666", "6666666666", "6666666666");
            u.Interested = "";
            u.PendingPurchase = "purchased: Hurse id: 00000002";
            u.Requests = "";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00008;
            u.Info = new ContactInfo("Jackie", "Moon", "", "1 car drive, Austin, Tx", "3333333336", "3333333336", "3333333336");
            u.Interested = "";
            u.PendingPurchase = "purchased:  BMW id: 000000003";
            u.Requests = "";
            test_cus.Add(u);

            u = new Customer();
            u.AdditionalInfo = "info";
            u.Clearance = 0;
            u.Customer_ID = 00009;
            u.Info = new ContactInfo("Freddy", "Kruegar", "", "666 Elm St, Everywhere, Tx", "6665555555", "6665555555", "6665555555");
            u.Interested = "";
            u.PendingPurchase = "purchased: BMW id: 000000004";
            u.Requests = "";
            test_cus.Add(u);
            
            //duplicate customer
            test_cus.Add(u);

            #endregion

            #region Employee testing

            //Staff

            //Chris Tuck
            //222 Elm Dr, DFW, Tx
            //Home: 9991111123
            //Work: 9991111123
            //Cell: 9991111123
            //LogIn: Ctuck1
            //Password: password
            //PayInfo: 
            x = new Staff();
            x.Clearance = 1;
            x.IDNumber = 11111111;
            x.Info = new ContactInfo();
            x.LogInID = "";
            x.Password = "";
            x.PayInfo = new PayrollInfo();
            x.Specialty = "";

            //Chris Smith

            //Anton Brown
            //222 Elm Dr, Houston, Tx
            //Home: 6665555555
            //Work: 6665555555
            //Cell: 6665555555
            //LogIn
            //Password
            //PayInfo

            //Julie Edwards

            //John Edwards
            //222 Elm Dr, Austin, Tx
            //Home: 6665555555
            //Work: 6665555555
            //Cell: 6665555555
            //LogIn
            //Password
            //PayInfo
            //Boon Gibson

            Staff x = new Staff();
            //empty staff
            test_staff.Add(x);

            x = new Staff();
            x.Clearance = 1;
            x.IDNumber = 11111111;
            x.Info = new ContactInfo();
            x.LogInID = "";
            x.Password = "";
            x.PayInfo = new PayrollInfo();
            x.Specialty = "";


            #endregion

            #region Car testing
            Car c = new Car();

            //Empty Car
            test_cars.Add(c);

            //Full Car
            Car c = new Car();
            c.CarInfo = "new car!";
            c.CityFE = 18;
            c.Condition = "Minor hail damage";
            c.DateReceived = new DateTime(2009, 1, 1);
            c.DriveType = "manual";
            c.EngineType = "v8";
            c.exColor = "silver";
            c.inColor = "maroon";
            c.LowestSalePrice = 10.00;
            c.Make = "BMW";
            c.Mileage = 20;
            c.Model = "Z10";
            c.Status = CarStatus.Unsold;
            c.TagPrice = 2000;
            c.Torque = 100;
            c.Transmission = "manual";
            c.VehicleType = CarType.Convertible;
            c.VIN_Number = 11111111;
            c.Warranty = "5 year";
            c.Year = 2000;
            c.Location = test_dealers[1];//Full dealer

            test_dealers[1].AddCar(c);
            test_cars.Add(c);

            //Duplicate Car
            test_cars.Add(c);

            #endregion

            #endregion
        }
    }
}
